package rexsee.network;

import rexsee.core.browser.Browser;
import rexsee.core.browser.clazz.JavascriptInterface;
import android.content.Context;

public class RexseeVPN implements JavascriptInterface {

	public static final String INTERFACE_NAME = "VPN";
	@Override
	public String getInterfaceName() {
		return mBrowser.application.resources.prefix + INTERFACE_NAME;
	}
	@Override
	public JavascriptInterface getInheritInterface(Browser childBrowser) {
		return this;
	}
	@Override
	public JavascriptInterface getNewInterface(Browser childBrowser) {
		return new RexseeVPN(childBrowser);
	}

	public final Context mContext;
	private final Browser mBrowser;

	public RexseeVPN(Browser browser) {
		mBrowser = browser;
		mContext = browser.getContext();
	}

}
